/*
 * @(#)Requirement.java
 *
 * (c) COPYRIGHT 1998-1999 MOTOROLA INC.
 * MOTOROLA CONFIDENTIAL PROPIETARY
 * MOTOROLA Advanced Technology and Software Operations
 *
 * REVISION HISTORY:
 * Author Date       CR Number         Brief Description
 * ------ ---------- ----------------- ------------------------------
 * wfo007 16/02/2009
 */

package br.edu.ufcg.splab.techniques.reduction.requirement;



/**
 * A class that implements the notion of a test requirement. 
 * <pre>
 * 
 * CLASS:
 * 
 *
 * RESPONSIBILITIES:
 * 
 *
 * COLABORATORS: 
 *
 *
 * USAGE:
 *
 * </pre>
 **/
public class Requirement implements InterfaceRequirement{
		
	private String label;
	
	/**
	 * Returns the label of the requirement.
	 * @return The label of the requirement.
	 */
	public String getLabel() {
		return label;
	}

	/**
	 * Modifies the label of the requirement.
	 * @param label The new label of the requirement.
	 */
	public void setLabel(String label) {
		this.label = label;
	}
	
	/**
	 * Verify if the given label of the requirement is equals.
	 */
	public boolean equals(Object obj){
		Requirement another = (Requirement) obj;
		return this.getLabel().equals(another.getLabel());
	}
	
}